#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class ModuleList : Business.BusinessBase<ModuleList, int>
	{
		#region Fields and Properties

		private int parentModuleKey = 0;
		/// <summary>
		/// 
		/// </summary>
		public int ParentModuleKey
		{
			get { return parentModuleKey; }
			set
			{
				if (value != parentModuleKey)
				{
					MarkChanged("ParentModuleKey");
					parentModuleKey = value;
				}
			}
		}

		private String moduleName = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String ModuleName
		{
			get { return moduleName; }
			set
			{
				if (value != moduleName)
				{
					MarkChanged("ModuleName");
					moduleName = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public ModuleList()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override ModuleList DataSelect(int id)
		{
			return Services.DALService.ModuleListService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.ModuleListService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.ModuleListService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.ModuleListService.Delete(this);
		}

		#endregion Base overrides
	}
}
